<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>社交网站红包推荐</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <style>
        :root {
            --primary: #e63946;
            --primary-light: #f1faee;
            --secondary: #1d3557;
            --accent: #f1faee;
            --light: #f8f9fa;
            --dark: #1d3557;
            --gray: #6c757d;
            --light-gray: #e9ecef;
            --transition: all 0.25s ease;
        }
        
        body {
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            background-color: #fff5f5;
            color: var(--dark);
            line-height: 1.6;
            padding: 30px 0;
        }
        
        .container {
            max-width: 1200px;
        }
        
        .section-title {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 30px;
            padding-bottom: 10px;
            border-bottom: 3px solid var(--primary);
            display: inline-flex;
            align-items: center;
            gap: 10px;
        }
        
        .section-description {
            color: var(--gray);
            margin-bottom: 30px;
            max-width: 800px;
        }
        
        /* 红包通用样式 */
        .redpacket-card {
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 4px 12px rgba(230, 57, 70, 0.1);
            overflow: hidden;
            transition: var(--transition);
            margin-bottom: 20px;
            position: relative;
            border: 1px solid #ffe5e5;
        }
        
        .redpacket-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(230, 57, 70, 0.15);
        }
        
        .redpacket-header {
            padding: 15px 20px;
            background: linear-gradient(135deg, var(--primary), #d62828);
            color: white;
            position: relative;
        }
        
        .redpacket-type {
            font-size: 0.85rem;
            font-weight: 500;
            opacity: 0.9;
            margin-bottom: 5px;
        }
        
        .redpacket-title {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 0;
        }
        
        .redpacket-amount {
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 1.5rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .redpacket-amount small {
            font-size: 0.85rem;
            font-weight: normal;
            opacity: 0.9;
        }
        
        .redpacket-content {
            padding: 20px;
        }
        
        .redpacket-desc {
            color: var(--gray);
            margin-bottom: 15px;
            line-height: 1.6;
        }
        
        .redpacket-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 15px;
            font-size: 0.9rem;
            color: var(--gray);
        }
        
        .meta-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .redpacket-author {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid var(--light-gray);
        }
        
        .author-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid white;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        
        .author-info {
            flex: 1;
        }
        
        .author-name {
            font-weight: 600;
            font-size: 0.95rem;
        }
        
        .author-role {
            font-size: 0.8rem;
            color: var(--gray);
        }
        
        .redpacket-actions {
            display: flex;
            gap: 10px;
            align-items: center;
        }
        
        .action-btn {
            display: flex;
            align-items: center;
            gap: 5px;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 0.85rem;
            font-weight: 500;
            transition: var(--transition);
            cursor: pointer;
            border: none;
        }
        
        .btn-primary {
            background-color: var(--primary);
            color: white;
        }
        
        .btn-primary:hover {
            background-color: #d62828;
        }
        
        .btn-outline {
            background-color: transparent;
            color: var(--gray);
            border: 1px solid var(--light-gray);
        }
        
        .btn-outline:hover {
            background-color: var(--light);
        }
        
        /* 红包专属装饰 */
        .redpacket-decoration {
            position: absolute;
            top: -8px;
            right: 20px;
            width: 30px;
            height: 30px;
            background-color: #ffd700;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            transform: rotate(15deg);
        }
        
        .redpacket-decoration i {
            color: #8b4513;
            font-size: 1rem;
        }
        
        .redpacket-footer {
            padding: 12px 20px;
            background-color: var(--primary-light);
            font-size: 0.85rem;
            color: #6d1d25;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .countdown {
            font-weight: 600;
            color: var(--primary);
        }
        
        /* 多种布局样式 */
        /* 1. 大图红包 */
        .redpacket-large {
            display: flex;
            flex-direction: column;
        }
        
        .redpacket-large .redpacket-image {
            height: 200px;
            width: 100%;
            object-fit: cover;
        }
        
        /* 2. 带图红包 */
        .redpacket-with-image {
            display: flex;
        }
        
        .redpacket-with-image .redpacket-image-container {
            flex: 0 0 30%;
        }
        
        .redpacket-with-image .redpacket-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .redpacket-with-image .redpacket-main {
            flex: 1;
        }
        
        /* 3. 纯文本红包 */
        .redpacket-text-only .redpacket-header {
            border-bottom: 1px solid rgba(255,255,255,0.2);
        }
        
        /* 4. 网格布局 */
        .grid-layout {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 20px;
            margin-bottom: 40px;
        }
        
        .grid-layout .redpacket-card {
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        
        .grid-layout .redpacket-content {
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        
        .grid-layout .redpacket-actions {
            margin-top: auto;
        }
        
        /* 5. 轮播布局 */
        .carousel-layout {
            margin-bottom: 40px;
        }
        
        .carousel-control-prev,
        .carousel-control-next {
            width: 5%;
        }
        
        .carousel-control-prev-icon,
        .carousel-control-next-icon {
            background-color: rgba(230, 57, 70, 0.7);
            border-radius: 50%;
            width: 40px;
            height: 40px;
        }
        
        /* 6. 横幅红包 */
        .banner-redpacket {
            background: linear-gradient(135deg, #e63946 0%, #d62828 50%, #e63946 100%);
            color: white;
            border-radius: 10px;
            overflow: hidden;
            padding: 25px;
            margin-bottom: 30px;
            position: relative;
            box-shadow: 0 5px 15px rgba(230, 57, 70, 0.2);
        }
        
        .banner-redpacket::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        }
        
        .banner-content {
            position: relative;
            z-index: 1;
            display: flex;
            align-items: center;
        }
        
        .banner-text {
            flex: 1;
        }
        
        .banner-title {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 10px;
        }
        
        .banner-desc {
            opacity: 0.9;
            margin-bottom: 15px;
            max-width: 600px;
        }
        
        .banner-amount {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 10px;
        }
        
        .banner-actions {
            flex: 0 0 200px;
            text-align: center;
        }
        
        .banner-btn {
            background-color: white;
            color: var(--primary);
            border: none;
            border-radius: 30px;
            padding: 12px 30px;
            font-size: 1rem;
            font-weight: 600;
            transition: var(--transition);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        
        .banner-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }
        
        /* 交互效果 */
        .like-btn.active i {
            color: var(--primary);
        }
        
        .save-btn.active i {
            color: var(--primary);
        }
        
        .grab-btn:active {
            transform: scale(0.95);
        }
        
        /* 响应式调整 */
        @media (max-width: 992px) {
            .redpacket-with-image {
                flex-direction: column;
            }
            
            .redpacket-with-image .redpacket-image-container {
                flex: none;
                height: 180px;
            }
            
            .banner-content {
                flex-direction: column;
                text-align: center;
            }
            
            .banner-actions {
                margin-top: 20px;
                flex: none;
            }
        }
        
        @media (max-width: 768px) {
            .grid-layout {
                grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
            }
            
            .redpacket-amount {
                position: static;
                transform: none;
                margin-top: 10px;
            }
            
            .redpacket-header {
                padding-bottom: 25px;
            }
            
            .banner-title {
                font-size: 1.5rem;
            }
            
            .banner-amount {
                font-size: 2rem;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <h1 class="section-title">
            <i class="fas fa-red-envelope text-primary"></i> 红包推荐
        </h1>
        <p class="section-description">
            发现最新红包活动，包括品牌福利、节日红包、活动奖励等。领取红包后可在相应平台使用，快来参与吧！
        </p>
        
        <!-- 横幅红包 -->
        <div class="banner-redpacket">
            <div class="banner-content">
                <div class="banner-text">
                    <div class="banner-title">新年特别红包活动</div>
                    <div class="banner-desc">
                        庆祝新年到来，发放100万红包福利，每位用户可领取最高888元现金红包，更有机会获得免单大奖！
                    </div>
                    <div class="banner-amount">
                        ¥88 - ¥888 <small>随机金额</small>
                    </div>
                    <div class="meta-item">
                        <i class="far fa-user"></i> 已被领取 125,689 次
                    </div>
                </div>
                <div class="banner-actions">
                    <button class="banner-btn grab-btn">
                        <i class="fas fa-gift"></i> 立即领取
                    </button>
                </div>
            </div>
        </div>
        
        <!-- 轮播布局红包 -->
        <h2 class="h4 mb-3 text-muted">热门红包</h2>
        <div class="carousel-layout">
            <div id="redpacketsCarousel" class="carousel slide" data-bs-ride="carousel">
                <div class="carousel-inner">
                    <!-- 轮播项1 -->
                    <div class="carousel-item active">
                        <div class="redpacket-card redpacket-with-image">
                            <div class="redpacket-image-container">
                                <img src="https://picsum.photos/id/292/600/400" alt="超市购物红包" class="redpacket-image">
                            </div>
                            <div class="redpacket-main">
                                <div class="redpacket-header">
                                    <div class="redpacket-type">购物抵扣红包</div>
                                    <div class="redpacket-title">超市满减红包 - 最高立减50元</div>
                                    <div class="redpacket-amount">
                                        ¥5 - ¥50
                                    </div>
                                    <div class="redpacket-decoration">
                                        <i class="fas fa-tag"></i>
                                    </div>
                                </div>
                                <div class="redpacket-content">
                                    <p class="redpacket-desc">
                                        大型连锁超市全场通用红包，满100减10，满200减30，满300减50，有效期至本月底。
                                    </p>
                                    <div class="redpacket-meta">
                                        <div class="meta-item">
                                            <i class="far fa-eye"></i> 24.3k 浏览
                                        </div>
                                        <div class="meta-item">
                                            <i class="far fa-comment"></i> 568 评论
                                        </div>
                                        <div class="meta-item">
                                            <i class="far fa-heart"></i> 3.2k 点赞
                                        </div>
                                    </div>
                                    <div class="redpacket-author">
                                        <img src="https://picsum.photos/id/1080/100/100" alt="惠民超市官方账号头像" class="author-avatar">
                                        <div class="author-info">
                                            <div class="author-name">惠民超市官方账号</div>
                                            <div class="author-role">商超零售 · 官方认证</div>
                                        </div>
                                    </div>
                                    <div class="redpacket-actions">
                                        <button class="action-btn btn-primary grab-btn">
                                            <i class="fas fa-hand-holding-usd"></i> 领取红包
                                        </button>
                                        <button class="action-btn btn-outline like-btn">
                                            <i class="far fa-heart"></i> 点赞
                                        </button>
                                    </div>
                                </div>
                                <div class="redpacket-footer">
                                    <span>剩余: 24,568 个</span>
                                    <span class="countdown">倒计时: 2天8小时</span>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 轮播项2 -->
                    <div class="carousel-item">
                        <div class="redpacket-card redpacket-with-image">
                            <div class="redpacket-image-container">
                                <img src="https://picsum.photos/id/3/600/400" alt="外卖红包" class="redpacket-image">
                            </div>
                            <div class="redpacket-main">
                                <div class="redpacket-header">
                                    <div class="redpacket-type">餐饮红包</div>
                                    <div class="redpacket-title">外卖平台新用户专享红包</div>
                                    <div class="redpacket-amount">
                                        ¥15 - ¥30
                                    </div>
                                    <div class="redpacket-decoration">
                                        <i class="fas fa-utensils"></i>
                                    </div>
                                </div>
                                <div class="redpacket-content">
                                    <p class="redpacket-desc">
                                        新用户专享外卖红包，无门槛使用，全场通用。老用户邀请新用户也可获得同等金额红包。
                                    </p>
                                    <div class="redpacket-meta">
                                        <div class="meta-item">
                                            <i class="far fa-eye"></i> 45.7k 浏览
                                        </div>
                                        <div class="meta-item">
                                            <i class="far fa-comment"></i> 1243 评论
                                        </div>
                                        <div class="meta-item">
                                            <i class="far fa-heart"></i> 8.9k 点赞
                                        </div>
                                    </div>
                                    <div class="redpacket-author">
                                        <img src="https://picsum.photos/id/1074/100/100" alt="美食外卖官方账号头像" class="author-avatar">
                                        <div class="author-info">
                                            <div class="author-name">美食外卖官方账号</div>
                                            <div class="author-role">餐饮服务 · 官方认证</div>
                                        </div>
                                    </div>
                                    <div class="redpacket-actions">
                                        <button class="action-btn btn-primary grab-btn">
                                            <i class="fas fa-hand-holding-usd"></i> 领取红包
                                        </button>
                                        <button class="action-btn btn-outline like-btn">
                                            <i class="far fa-heart"></i> 点赞
                                        </button>
                                        <button class="action-btn btn-outline save-btn">
                                            <i class="far fa-bookmark"></i> 收藏
                                        </button>
                                    </div>
                                </div>
                                <div class="redpacket-footer">
                                    <span>剩余: 56,321 个</span>
                                    <span class="countdown">倒计时: 5天12小时</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <button class="carousel-control-prev" type="button" data-bs-target="#redpacketsCarousel" data-bs-slide="prev">
                    <span class="carousel-control-prev-icon" aria-hidden="true"></span>
                    <span class="visually-hidden">Previous</span>
                </button>
                <button class="carousel-control-next" type="button" data-bs-target="#redpacketsCarousel" data-bs-slide="next">
                    <span class="carousel-control-next-icon" aria-hidden="true"></span>
                    <span class="visually-hidden">Next</span>
                </button>
            </div>
        </div>
        
        <!-- 网格布局红包 -->
        <h2 class="h4 mb-3 text-muted">为你推荐</h2>
        <div class="grid-layout">
            <!-- 网格红包1 - 带图 -->
            <div class="redpacket-card redpacket-large">
                <img src="https://picsum.photos/id/26/600/400" alt="电子产品红包" class="redpacket-image">
                <div class="redpacket-header">
                    <div class="redpacket-type">数码产品红包</div>
                    <div class="redpacket-title">数码商城满减券 - 最高减200元</div>
                    <div class="redpacket-amount">
                        ¥50 - ¥200
                    </div>
                </div>
                <div class="redpacket-content">
                    <p class="redpacket-desc">
                        数码产品专用红包，满1000减50，满2000减100，满3000减200，全场数码产品通用。
                    </p>
                    <div class="redpacket-meta">
                        <div class="meta-item">
                            <i class="far fa-eye"></i> 12.5k 浏览
                        </div>
                        <div class="meta-item">
                            <i class="far fa-heart"></i> 1.8k 点赞
                        </div>
                    </div>
                    <div class="redpacket-author">
                        <img src="https://picsum.photos/id/1066/100/100" alt="科技数码城头像" class="author-avatar">
                        <div class="author-name">科技数码城</div>
                    </div>
                    <div class="redpacket-actions">
                        <button class="action-btn btn-primary grab-btn">
                            <i class="fas fa-hand-holding-usd"></i> 领取
                        </button>
                        <button class="action-btn btn-outline like-btn">
                            <i class="far fa-heart"></i>
                        </button>
                        <button class="action-btn btn-outline save-btn">
                            <i class="far fa-bookmark"></i>
                        </button>
                    </div>
                </div>
                <div class="redpacket-footer">
                    <span>剩余: 8,765 个</span>
                    <span class="countdown">倒计时: 3天5小时</span>
                </div>
            </div>
            
            <!-- 网格红包2 - 纯文本 -->
            <div class="redpacket-card redpacket-text-only">
                <div class="redpacket-header">
                    <div class="redpacket-type">现金红包</div>
                    <div class="redpacket-title">金融APP新用户注册红包</div>
                    <div class="redpacket-amount">
                        ¥8.8 - ¥188
                    </div>
                    <div class="redpacket-decoration">
                        <i class="fas fa-money-bill-wave"></i>
                    </div>
                </div>
                <div class="redpacket-content">
                    <p class="redpacket-desc">
                        新用户注册并完成实名认证即可领取现金红包，可直接提现至银行卡，无任何使用门槛。
                    </p>
                    <div class="redpacket-meta">
                        <div class="meta-item">
                            <i class="far fa-eye"></i> 9.3k 浏览
                        </div>
                        <div class="meta-item">
                            <i class="far fa-comment"></i> 321 评论
                        </div>
                    </div>
                    <div class="redpacket-author">
                        <img src="https://picsum.photos/id/1062/100/100" alt="智慧金融头像" class="author-avatar">
                        <div class="author-name">智慧金融</div>
                    </div>
                    <div class="redpacket-actions">
                        <button class="action-btn btn-primary grab-btn">
                            <i class="fas fa-hand-holding-usd"></i> 领取
                        </button>
                        <button class="action-btn btn-outline like-btn">
                            <i class="far fa-heart"></i>
                        </button>
                    </div>
                </div>
                <div class="redpacket-footer">
                    <span>剩余: 12,345 个</span>
                    <span class="countdown">倒计时: 7天3小时</span>
                </div>
            </div>
            
            <!-- 网格红包3 - 带图 -->
            <div class="redpacket-card redpacket-large">
                <img src="https://picsum.photos/id/96/600/400" alt="电影票红包" class="redpacket-image">
                <div class="redpacket-header">
                    <div class="redpacket-type">娱乐红包</div>
                    <div class="redpacket-title">电影票抵扣券 - 2D/3D通用</div>
                    <div class="redpacket-amount">
                        ¥5 - ¥20
                    </div>
                </div>
                <div class="redpacket-content">
                    <p class="redpacket-desc">
                        全国影院通用电影票抵扣券，2D/3D影片均可使用，特殊场次需补足差价，有效期30天。
                    </p>
                    <div class="redpacket-meta">
                        <div class="meta-item">
                            <i class="far fa-eye"></i> 7.8k 浏览
                        </div>
                        <div class="meta-item">
                            <i class="far fa-heart"></i> 956 点赞
                        </div>
                    </div>
                    <div class="redpacket-author">
                        <img src="https://picsum.photos/id/1071/100/100" alt="星光影院头像" class="author-avatar">
                        <div class="author-name">星光影院</div>
                    </div>
                    <div class="redpacket-actions">
                        <button class="action-btn btn-primary grab-btn">
                            <i class="fas fa-hand-holding-usd"></i> 领取
                        </button>
                        <button class="action-btn btn-outline like-btn">
                            <i class="far fa-heart"></i>
                        </button>
                        <button class="action-btn btn-outline save-btn">
                            <i class="far fa-bookmark"></i>
                        </button>
                    </div>
                </div>
                <div class="redpacket-footer">
                    <span>剩余: 5,678 个</span>
                    <span class="countdown">倒计时: 1天18小时</span>
                </div>
            </div>
        </div>
        
        <!-- 大图红包 -->
        <h2 class="h4 mb-3 text-muted">限时福利</h2>
        <div class="redpacket-card redpacket-large mb-5">
            <img src="https://picsum.photos/id/239/1200/400" alt="旅游红包" class="redpacket-image">
            <div class="redpacket-header">
                <div class="redpacket-type">旅游红包</div>
                <div class="redpacket-title">暑期旅游大礼包 - 最高立减1000元</div>
                <div class="redpacket-amount">
                    ¥200 - ¥1000
                </div>
                <div class="redpacket-decoration">
                    <i class="fas fa-plane"></i>
                </div>
            </div>
            <div class="redpacket-content">
                <p class="redpacket-desc">
                    暑期旅游专属红包，适用于国内所有线路，满3000减200，满5000减500，满10000减1000。可与其他优惠叠加使用，数量有限，先到先得。
                </p>
                <div class="redpacket-meta">
                    <div class="meta-item">
                        <i class="far fa-eye"></i> 18.7k 浏览
                    </div>
                    <div class="meta-item">
                        <i class="far fa-comment"></i> 432 评论
                    </div>
                    <div class="meta-item">
                        <i class="far fa-heart"></i> 2.5k 点赞
                    </div>
                    <div class="meta-item">
                        <i class="far fa-calendar-alt"></i> 今天 10:00 发布
                    </div>
                </div>
                <div class="redpacket-author">
                    <img src="https://picsum.photos/id/1025/100/100" alt="环球旅行官方账号头像" class="author-avatar">
                    <div class="author-info">
                        <div class="author-name">环球旅行官方账号</div>
                        <div class="author-role">旅游服务 · 官方认证</div>
                    </div>
                    <button class="action-btn btn-outline">
                        <i class="far fa-user-plus"></i> 关注
                    </button>
                </div>
                <div class="redpacket-actions">
                    <button class="action-btn btn-primary grab-btn">
                        <i class="fas fa-hand-holding-usd"></i> 立即领取
                    </button>
                    <button class="action-btn btn-outline like-btn">
                        <i class="far fa-heart"></i> 点赞
                    </button>
                    <button class="action-btn btn-outline save-btn">
                        <i class="far fa-bookmark"></i> 收藏
                    </button>
                </div>
            </div>
            <div class="redpacket-footer">
                <span>剩余: 3,456 个</span>
                <span class="countdown">倒计时: 0天8小时</span>
            </div>
        </div>
        
        <!-- 纯文本红包 -->
        <h2 class="h4 mb-3 text-muted">现金红包</h2>
        <div class="redpacket-card redpacket-text-only">
            <div class="redpacket-header">
                <div class="redpacket-type">现金红包</div>
                <div class="redpacket-title">品牌推广活动红包 - 直接提现</div>
                <div class="redpacket-amount">
                    ¥1.88 - ¥66.66
                </div>
                <div class="redpacket-decoration">
                    <i class="fas fa-coins"></i>
                </div>
            </div>
            <div class="redpacket-content">
                <p class="redpacket-desc">
                    知名品牌推广活动红包，完成简单任务即可领取，金额随机，可直接提现至微信或支付宝。任务包括：关注公众号、分享活动、填写简短问卷等。
                </p>
                <div class="redpacket-meta">
                    <div class="meta-item">
                        <i class="far fa-eye"></i> 32.4k 浏览
                    </div>
                    <div class="meta-item">
                        <i class="far fa-comment"></i> 1256 评论
                    </div>
                    <div class="meta-item">
                        <i class="far fa-heart"></i> 6.8k 点赞
                    </div>
                    <div class="meta-item">
                        <i class="far fa-calendar-alt"></i> 昨天 15:30 发布
                    </div>
                </div>
                <div class="redpacket-author">
                    <img src="https://picsum.photos/id/1082/100/100" alt="品牌联盟头像" class="author-avatar">
                    <div class="author-info">
                        <div class="author-name">品牌联盟</div>
                        <div class="author-role">品牌推广 · 官方认证</div>
                    </div>
                    <button class="action-btn btn-outline">
                        <i class="far fa-user-plus"></i> 关注
                    </button>
                </div>
                <div class="redpacket-actions">
                    <button class="action-btn btn-primary grab-btn">
                        <i class="fas fa-hand-holding-usd"></i> 领取红包
                    </button>
                    <button class="action-btn btn-outline like-btn">
                        <i class="far fa-heart"></i> 点赞
                    </button>
                    <button class="action-btn btn-outline save-btn">
                        <i class="far fa-bookmark"></i> 收藏
                    </button>
                </div>
            </div>
            <div class="redpacket-footer">
                <span>剩余: 45,678 个</span>
                <span class="countdown">倒计时: 4天10小时</span>
            </div>
        </div>
    </div>

    <!-- Bootstrap 5 JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 模拟倒计时功能
            function updateCountdowns() {
                const countdowns = document.querySelectorAll('.countdown');
                countdowns.forEach(countdown => {
                    const text = countdown.textContent;
                    // 简单模拟倒计时减少1分钟
                    if (text.includes('小时')) {
                        let hours = parseInt(text.match(/\d+天(\d+)小时/)[1]);
                        if (hours > 0) {
                            countdown.textContent = text.replace(/(\d+)小时/, (hours - 1) + '小时');
                        } else {
                            let days = parseInt(text.match(/(\d+)天/)[1]);
                            if (days > 0) {
                                countdown.textContent = text.replace(/(\d+)天(\d+)小时/, (days - 1) + '天23小时');
                            }
                        }
                    }
                });
            }
            
            // 每分钟更新一次倒计时
            setInterval(updateCountdowns, 60000);
            
            // 点赞功能
            const likeButtons = document.querySelectorAll('.like-btn');
            likeButtons.forEach(button => {
                button.addEventListener('click', function() {
                    this.classList.toggle('active');
                    const icon = this.querySelector('i');
                    
                    if (this.classList.contains('active')) {
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        icon.style.color = 'var(--primary)';
                    } else {
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        icon.style.color = '';
                    }
                });
            });
            
            // 收藏功能
            const saveButtons = document.querySelectorAll('.save-btn');
            saveButtons.forEach(button => {
                button.addEventListener('click', function() {
                    this.classList.toggle('active');
                    const icon = this.querySelector('i');
                    
                    if (this.classList.contains('active')) {
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        icon.style.color = 'var(--primary)';
                    } else {
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        icon.style.color = '';
                    }
                });
            });
            
            // 关注按钮功能
            const followButtons = document.querySelectorAll('.action-btn:has(.fa-user-plus)');
            followButtons.forEach(button => {
                button.addEventListener('click', function() {
                    const icon = this.querySelector('i');
                    const text = this.childNodes[2].textContent.trim();
                    
                    if (text === '关注') {
                        this.childNodes[2].textContent = ' 已关注';
                        icon.classList.remove('far', 'fa-user-plus');
                        icon.classList.add('fas', 'fa-check');
                        this.classList.remove('btn-outline');
                        this.classList.add('btn-primary');
                    } else {
                        this.childNodes[2].textContent = ' 关注';
                        icon.classList.remove('fas', 'fa-check');
                        icon.classList.add('far', 'fa-user-plus');
                        this.classList.remove('btn-primary');
                        this.classList.add('btn-outline');
                    }
                });
            });
            
            // 领取红包功能
            const grabButtons = document.querySelectorAll('.grab-btn');
            grabButtons.forEach(button => {
                button.addEventListener('click', function() {
                    // 模拟加载状态
                    const originalContent = this.innerHTML;
                    this.disabled = true;
                    
                    if (this.classList.contains('banner-btn')) {
                        this.innerHTML = '<i class="fas fa-spinner fa-spin"></i> 领取中...';
                    } else {
                        this.innerHTML = '<i class="fas fa-spinner fa-spin"></i> 领取中';
                    }
                    
                    // 随机模拟领取结果
                    setTimeout(() => {
                        const amounts = ['5.20', '8.80', '10.00', '18.80', '20.00', '66.66'];
                        const randomAmount = amounts[Math.floor(Math.random() * amounts.length)];
                        
                        alert(`恭喜您成功领取 ¥${randomAmount} 红包！已存入您的账户。`);
                        
                        this.disabled = false;
                        this.innerHTML = originalContent;
                        
                        // 更新剩余数量（简单模拟）
                        const footer = this.closest('.redpacket-card')?.querySelector('.redpacket-footer .countdown:first-of-type');
                        if (footer) {
                            const count = parseInt(footer.textContent.match(/\d+/)[0]);
                            if (count > 0) {
                                footer.textContent = `剩余: ${count - 1} 个`;
                            }
                        }
                    }, 1000);
                });
            });
        });
    </script>
</body>
</html>
    
